//
//  CustomToastView.h
//  jyb
//
//  Created by Jiuwu on 14/12/30.
//  Copyright (c) 2014年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, ToastAnimationStyle) {
    ToastAnimationStyleFade,
    ToastAnimationStyleTip,
    ToastAnimationStylePopFromTop,
    ToastAnimationStylePopFromMiddle,
    ToastAnimationStylePopFromBottom
};

@interface CustomToastView : UIView {
    UILabel *_textLabel;
    int _queueCount;
}

@property (nonatomic, retain) UIView *parentView;
@property (nonatomic, retain) UIColor *bgColor;
@property (nonatomic, copy) NSString *labelText;
@property (nonatomic, assign) ToastAnimationStyle animationStyle;

- (instancetype)initWithFrame:(CGRect)frame bgColor:(UIColor *)backgroundColor;
- (void)setText:(NSString *)text;
- (void)showWithAnimation:(ToastAnimationStyle)animationStyle;

+ (void)toast:(NSString *)title;
+ (void)toast:(NSString *)title style:(ToastAnimationStyle)animationStyle;
+ (void)toast:(NSString *)title style:(ToastAnimationStyle)animationStyle color:(UIColor *)bgColor;

@end
